package com.syy.spider.dao;

import com.syy.spider.pojo.NoticeGet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Mapper
@Repository
public interface NoticeMapper {
    int addNewNotice(@Param("title") String title, @Param("con") String con, @Param("date") Date date);

    int deleteNoticeById(@Param("id") int id);

    NoticeGet selectById(@Param("id") int id);

    int editNotice(@Param("title") String title, @Param("con") String con, @Param("date") Date date, @Param("id") Integer id);

    NoticeGet selectByAll(@Param("title") String title, @Param("con") String con);
}
